package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcGccpkcMapper;
import com.ruoyi.jhc.domain.JhcGccpkc;
import com.ruoyi.jhc.service.IJhcGccpkcService;

/**
 * 钢材成品库存录入Service业务层处理
 * 
 * @author lgx
 * @date 2022-10-28
 */
@Service
public class JhcGccpkcServiceImpl implements IJhcGccpkcService 
{
    @Autowired
    private JhcGccpkcMapper jhcGccpkcMapper;

    /**
     * 查询钢材成品库存录入
     * 
     * @param cDate 钢材成品库存录入主键
     * @return 钢材成品库存录入
     */
    @Override
    public JhcGccpkc selectJhcGccpkcByCDate(String cDate)
    {
        return jhcGccpkcMapper.selectJhcGccpkcByCDate(cDate);
    }

    /**
     * 查询钢材成品库存录入列表
     * 
     * @param jhcGccpkc 钢材成品库存录入
     * @return 钢材成品库存录入
     */
    @Override
    public List<JhcGccpkc> selectJhcGccpkcList(JhcGccpkc jhcGccpkc)
    {
        return jhcGccpkcMapper.selectJhcGccpkcList(jhcGccpkc);
    }

    /**
     * 新增钢材成品库存录入
     * 
     * @param jhcGccpkc 钢材成品库存录入
     * @return 结果
     */
    @Override
    public int insertJhcGccpkc(JhcGccpkc jhcGccpkc)
    {
        return jhcGccpkcMapper.insertJhcGccpkc(jhcGccpkc);
    }

    /**
     * 修改钢材成品库存录入
     * 
     * @param jhcGccpkc 钢材成品库存录入
     * @return 结果
     */
    @Override
    public int updateJhcGccpkc(JhcGccpkc jhcGccpkc)
    {
        return jhcGccpkcMapper.updateJhcGccpkc(jhcGccpkc);
    }

    /**
     * 批量删除钢材成品库存录入
     * 
     * @param cDates 需要删除的钢材成品库存录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcGccpkcByCDates(String[] cDates)
    {
        return jhcGccpkcMapper.deleteJhcGccpkcByCDates(cDates);
    }

    /**
     * 删除钢材成品库存录入信息
     * 
     * @param cDate 钢材成品库存录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcGccpkcByCDate(String cDate)
    {
        return jhcGccpkcMapper.deleteJhcGccpkcByCDate(cDate);
    }
}
